package jpa.entitys.promis.common;

import java.io.Serializable;

import javax.persistence.*;

import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the HUMANS database table.
 * 
 */
@Entity
@Table(name="HUMANS")
@NamedQueries({
    @NamedQuery(name = "Human.findAll", query = " SELECT c FROM Human c "),
    @NamedQuery(name = "Human.findById", query = " SELECT c FROM Human c WHERE c.id = :Id "),
    @NamedQuery(name = "Human.findByStatus", query = " SELECT c FROM Human c WHERE c.status = :status ")
    
})
public class Human extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private HumanPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BRANCH_CODE", length=30)
	private String branchCode;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="DEPARTMENT_CODE", length=30)
	private String departmentCode;

	@Column(name="EMAIL_ADDRESS", length=100)
	private String emailAddress;

    @Temporal( TemporalType.DATE)
	@Column(name="END_EFFECTIVE_DATE")
	private Date endEffectiveDate;

	@Column(name="FAX_NO", length=30)
	private String faxNo;

	@Column(name="HUMAN_GROUP_CODE", length=5)
	private String humanGroupCode;

	@Column(name="HUMAN_TYPE", length=1)
	private String humanType;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.DATE)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="MOBILE_NO", length=30)
	private String mobileNo;

	@Column(name="NAME_1", length=50)
	private String name1;

	@Column(name="NAME_2", length=50)
	private String name2;

	@Column(name="PHONE_NO", length=50)
	private String phoneNo;

	@Column(length=1)
	private String sex;

    @Temporal( TemporalType.DATE)
	@Column(name="START_EFFECTIVE_DATE")
	private Date startEffectiveDate;

	@Column(length=1)
	private String status;

    public Human() {
    }

	public HumanPK getId() {
		return this.id;
	}

	public void setId(HumanPK id) {
		this.id = id;
	}
	
	public String getBranchCode() {
		return this.branchCode;
	}

	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDepartmentCode() {
		return this.departmentCode;
	}

	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	public String getEmailAddress() {
		return this.emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public Date getEndEffectiveDate() {
		return this.endEffectiveDate;
	}

	public void setEndEffectiveDate(Date endEffectiveDate) {
		this.endEffectiveDate = endEffectiveDate;
	}

	public String getFaxNo() {
		return this.faxNo;
	}

	public void setFaxNo(String faxNo) {
		this.faxNo = faxNo;
	}

	public String getHumanGroupCode() {
		return this.humanGroupCode;
	}

	public void setHumanGroupCode(String humanGroupCode) {
		this.humanGroupCode = humanGroupCode;
	}

	public String getHumanType() {
		return this.humanType;
	}

	public void setHumanType(String humanType) {
		this.humanType = humanType;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getMobileNo() {
		return this.mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	public String getName1() {
		return this.name1;
	}

	public void setName1(String name1) {
		this.name1 = name1;
	}

	public String getName2() {
		return this.name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getStartEffectiveDate() {
		return this.startEffectiveDate;
	}

	public void setStartEffectiveDate(Date startEffectiveDate) {
		this.startEffectiveDate = startEffectiveDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}